﻿<UserControl x:Class="SilverlightChess.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:clr="clr-namespace:SilverlightChess" 
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
    <Grid x:Name="LayoutRoot" ShowGridLines="False">
        <Grid.Background>
            <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                <GradientStop Color="#FF14517B" Offset="0"/>
                <GradientStop Color="SteelBlue" Offset="1" />
            </LinearGradientBrush>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="60"  />
            <RowDefinition Height="*" MinHeight="500"/>
            <RowDefinition Height="60" />
        </Grid.RowDefinitions>
        
        <Border Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Left" CornerRadius="10" Background="#FFDEDEDE" Margin="20,0,0,0">
            <TextBlock x:Name="Title" Foreground="#FF14517B"  Text="Silverlight Chess Game" FontSize="16" FontFamily="Arial" Margin="25,5,25,5"/>
        </Border>

        <Grid Grid.Row="1" ShowGridLines="False">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="100" MinWidth="200" />
                <ColumnDefinition Width="*" MinWidth="500" />
                <ColumnDefinition Width="200" MinWidth="100"/>
            </Grid.ColumnDefinitions>

            <StackPanel Grid.Column="0" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="10,10,10,10" >
                <Button Content="New Game" Width="100" Height="30" Margin="0,0,0,10" />
                <Button Content="Save" Width="100" Height="30" Margin="0,0,0,10" />
                <Button Content="Load" Width="100" Height="30" Margin="0,0,0,10" />
                <Button Content="Help" Width="100" Height="30" Margin="0,0,0,10" />
                <Button Content="Quit" Width="100" Height="30" Margin="0,0,0,10" />
           </StackPanel>

            <clr:ChessBoard Grid.Column="1" VerticalAlignment="Top" Margin="10,10,10,10" HorizontalAlignment="Left" >
            </clr:ChessBoard>

        </Grid>
        
        
    </Grid>
</UserControl>
